package com.luohai.stock.mapper;

import com.luohai.stock.pojo.domain.InnerMarketDomain;
import com.luohai.stock.pojo.domain.StockBlockDomain;
import com.luohai.stock.pojo.entity.StockMarketIndexInfo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author acer
* @description 针对表【stock_market_index_info(国内大盘数据详情表)】的数据库操作Mapper
* @createDate 2024-09-15 21:17:12
* @Entity com.luohai.stock.pojo.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockMarketIndexInfo record);

    int insertSelective(StockMarketIndexInfo record);

    StockMarketIndexInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockMarketIndexInfo record);

    int updateByPrimaryKey(StockMarketIndexInfo record);

    List<InnerMarketDomain> getIndexAll(@Param("lastDate") Date lastDate, @Param("inners") List<String> inners);

    List<StockBlockDomain> getSectorAll(@Param("lastDate") Date lastDate);

    List<Map> getTradeAmt(@Param("endDate") Date toDate,@Param("beginDate") Date toDate1,@Param("inners") List<String> inners);

    Integer addAll(@Param("lists") List<StockMarketIndexInfo> lists);
}
